home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Lexis Nexis Millenium Plus Collection 1997 to 1997
/
Lexis-Nexis Millenium Plus Collection - 1996-97 (Lexis-Nexis)(LA1173-0 07-96)(1996).bin
/
pc
/
internet
/
scripts
/
scripts.z
/
SECLOG.SCR
< prev
next >
Wrap
Text File
|
1996-01-25
|
2KB
|
79 lines
!
! Copyright (c) 1995
! by CompuServe Incorporated, Columbus, Ohio
!
! The information in this software is subject to change without
! notice and should not be construed as a commitment by CompuServe.
!
! SECLOG:
! Handles secure login.
!
!+V
! "3.8"
!-V
on cancel goto SecureCancel;
define %SecFailTemp = "";
wait
"." goto Host_Challenge_Received
until 100;
goto Timeout;
Host_Challenge_Received:
HostChallenge = %Scanned;
send "RB:^M^J" & %MicroChallenge & "aaa.^M^J";
define %UserResponse = "";
encode HostChallenge, %MicroChallenge, %Password, %UserResponse;
if %UserResponse <> "" goto Send_Micro_Response;
define %SecFailTemp = "Application error, out of resources";
define %ErrorCode = 33;
exit %Failure;
Send_Micro_Response:
send "UR:^M^J" & %UserResponse & ".^M^J";
wait
"No." goto Response_Refused,
"HR:" goto Handle_Host_Response
until 100;
goto Timeout;
Response_Refused:
define %SecFailTemp = "Incorrect User ID or password";
define %ErrorCode = 34;
exit %Failure;
Handle_Host_Response:
wait
"." goto Host_Response_Received
until 100;
Timeout:
define %SecFailTemp = "Host not responding to login request";
define %ErrorCode = 32;
exit %Failure;
Host_Response_Received:
define %HostResponse = %Scanned;
define %Approved = 0;
approve HostChallenge, %MicroChallenge, %Password, %HostResponse, %Approved;
if %Approved <> 0 goto Host_Response_Approved;
define %SecFailTemp = "Secure response from host was invalid";
define %ErrorCode = 35;
exit %Failure;
Host_Response_Approved:
exit %Success;
SecureCancel:
exit %Cancel;